package com.ucode.cgms.sapi.ssm;

import com.ucode.cgms.api.CgmsSysConfigRemoteApi;
import com.ucode.ssm.busiconf.service.SysConfigService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;

/**
 *
 * CGMS系统配置远程API 实现类
 * @Author: liliang
 * @Date: 2024/12/15 13:15
 * @Version: 1.0
 */
@Service
public class CgmsSysConfigRemoteApiImpl implements CgmsSysConfigRemoteApi {

    @Resource
    private SysConfigService sysConfigService;

    @Override
    public String getCompanionOrderPayNotifyUrl() {
        return sysConfigService.getPropertyValue("cgms-companion-order-pay-notify-url");
    }

    @Override
    public String getGiftRewardOrderPayNotifyUrl() {
        return sysConfigService.getPropertyValue("cgms-gift-reward-order-pay-notify-url");
    }

}
